const mongoose = require('mongoose')
mongoose.Promise = global.Promise
const Schema = mongoose.Schema
const ObjectId = Schema.Types.ObjectId

mongoose.connect('mongodb://127.0.0.1:27017/edu')

require('./advert')
require('./manager')
require('./category')
require('./course')

exports.Advert = mongoose.model('Advert')
exports.Manager = mongoose.model('Manager')
exports.Category = mongoose.model('Category')
exports.Course = mongoose.model('Course')

const Course = mongoose.model('Course')
